import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
import { EBattleResult } from "./EBattleResult";
type int = number;
//class SArenaCrossMyBetInfo
    
    export  class SArenaCrossMyBetInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.ring);
            this.toEntityId.__write(arg1);
            arg1.writeString(this.toName);
            this.result.__write(arg1);
            arg1.writeInt(this.betNum);
            arg1.writeInt(this.betUnit);
            arg1.writeInt(this.betReward);
            arg1.writeInt(this.betRewardUnit);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.ring = arg1.readInt();
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.toName = arg1.readString();
            this.result = EBattleResult.__read(arg1);
            this.betNum = arg1.readInt();
            this.betUnit = arg1.readInt();
            this.betReward = arg1.readInt();
            this.betRewardUnit = arg1.readInt();
            return;
        }

        public /* var */ring: int;

        public /* var */toEntityId: SEntityId;

        public /* var */toName: string;

        public /* var */result: EBattleResult;

        public /* var */betNum: int;

        public /* var */betUnit: int;

        public /* var */betReward: int;

        public /* var */betRewardUnit: int;
    }
